<!DOCTYPE html>
<html>
<head>
    <title>全局变量检测</title>
</head>
<script type="text/javascript" src='./detectGlobalJs.js'></script>
<script type="text/javascript">
    
    window.onload = function () {
        window.a = '1';
    }
</script>
<body>

</body>
</html>